# -*- coding: utf-8 -*-
from . import AdbUtils

class SystemLog:
    def __init__(self,device):
        self.device=device
        pass

    def __get_android_log(self,log_path):
        adb=AdbUtils.ADB(self.device)
        adb.logcat_c()
        # adb.logcat(log_path)

    def record(self,log_path):
        return self.__get_android_log(log_path)